import request from '@/utils/request'

// 查询微信对账数据
export function getWeChatRecList(query) {
  return request({
    url: '/hotel/order/registerWeChatRec/getWeChatRecList',
    method: 'get',
    params: query
  })
}

// 根据id查询微信对账数据
export function getWeChatRecById(query) {
  return request({
    url: '/hotel/order/registerWeChatRec/getWeChatRecById',
    method: 'get',
    params: query
  })
}

// 编辑微信对账数据
export function postEditWeChatRec(data) {
  return request({
    url: '/hotel/order/registerWeChatRec/postEditWeChatRec',
    method: 'post',
    data: data
  })
}

// 新增微信对账数据
export function postAddWeChatRec(data) {
  return request({
    url: '/hotel/order/registerWeChatRec/postAddWeChatRec',
    method: 'post',
    data: data
  })
}

// 取消确认对账
export function postCancelSeal(data) {
  return request({
    url: '/hotel/order/registerWeChatRec/postCancelSeal',
    method: 'post',
    data: data
  })
}

// 确认对账
export function postConfirmSeal(data) {
  return request({
    url: '/hotel/order/registerWeChatRec/postConfirmSeal',
    method: 'post',
    data: data
  })
}